package com.loong.system.model;

import com.loong.common.mybatis.entity.BaseEntity;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "system_position")
public class SystemPosition extends BaseEntity {
    /**
     * 位置名称
     */
    private String name;

    /**
     * 位置父节点id
     */
    @Column(name = "parent_id")
    private Long parentId;

    /**
     * 排序位置
     */
    private Integer sort;

    /**
     * 用于区分节点类型 预留用
     */
    private String code;


}
